package com.jwell.panrank.contract

import com.jwell.cargoapp.ui.base.IBaseView
import com.jwell.driverapp.tools.BaseSubscriber

/**
 * Created by 76577 on 2018/4/4.
 * 忘记密码
 */
class ForgetPasswordContract {
    interface View : IBaseView {
        //重置成功
        fun resetSucceed(newPassword: String)

        //重置失败
        fun resetFail()

        //获取验证码成功
        fun getCodeSucceed()
    }

    interface Presenter {
        //获取验证码
        fun regSendMsg(phone: String, userType: Int)

        //重置密码
        fun userRegPwd(phone: String, msgCode: String, pwd: String, userType: Int)
    }

    interface Model {
        //获取验证码
        fun regSendMsg(phone: String, userType: Int, baseSubscriber: BaseSubscriber)

        //重置密码
        fun userRegPwd(phone: String, msgCode: String, pwd: String, userType: Int, baseSubscriber: BaseSubscriber)
    }
}